package api.apiservice.apiopenplat.pojo.add;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *
 * Api添加实体
 *
 * */
@Data
public class ApiAdd implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * Api名称
     */
    @JsonProperty("aName")
    private String aName;

    /**
     * ApiUri
     */
    @JsonProperty("aUri")
    private String aUri;


    /**
     * Api的详情描述
     */
    @JsonProperty("aDescription")
    private String aDescription;


    /**
     *
     * Api是否免费
     * 1.完全免费
     * 2.部分免费
     * 3.完全收费
     *
     * */
    private Integer isfree;

    /**
     *
     * 可被调用次数(可免费)
     *
     * */
    private Integer aFreeCount;


    /**
     * api创建时间
     */
    @TableField(value = "a_created_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime aCreatedTime;


    /**
     * Api修改的时间
     */
    @TableField(value = "a_updated_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime aUpdatedTime;

    /**
     *
     * 请求方式
     * */
    private String aMethod;

    private String aRequest;

    private String aResponse;

    private String aSdkurl;

    private String  aParam;

    private Integer aUsedStatus;

}
